package com.itheima.test;

import com.itheima.SoulApplication;
import com.itheima.domain.db.Survey;
import com.itheima.service.db.SurveyService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


@RunWith(SpringRunner.class)
@SpringBootTest(classes = SoulApplication.class)
public class Survertest {
    @Autowired
    private SurveyService surveyService;
    @Test
    public void test() throws Exception{
        Survey survey=new Survey();
        survey.setId(1l);
        survey.setName("初级灵魂");
        survey.setCover("https://tanhua-dev.oss-cn-zhangjiakou.aliyuncs.com/images/tanhua/avatar_11.jpg");
        survey.setStar(1);
        survey.setLevel("初级");


    }
}

